<?php
namespace Home\Model;
use Think\Model\ViewModel;

class ClassStudentViewModel extends ViewModel{
    public $viewFields = array(
        'class_student'=>array(
            'student_stu_id',
            'class_cla_id'
        ),
        'student'=>array(
            "stu_name"=>"stu_name",
            "stu_id"=>"stu_id",
            "stu_number"=>"stu_number",
            "stu_email"=>"stu_email",
            '_on'=>'class_student.student_stu_id=student.stu_id'
        ),
        "class"=>array(
            "cla_id"=>"cla_id",
            "cla_name"=>"cla_name",
            "cou_id"=>"cou_id",
            "cla_stu_num"=>"cla_stu_num",
            "cla_code"=>"cla_code",
            "cla_start"=>"cla_start",
            "cla_end"=>"cla_end",
            "is_auto"=>"is_auto",
            "is_filed"=>"is_filed",
            "_on"=>"class_student.class_cla_id=class.cla_id"
        ),
        "course"=>array(
            "cou_id"=>"cou_id",
            "cou_name"=>"cou_name",
            "_on"=>"course.cou_id=class.cou_id",
        ),
    );
}